import { fromJS } from 'immutable';

const defaultState = fromJS({
  dataSource: [{
    key: '1',
    id: 1,
    userId: 1,
    title: '人类简史说明',
    content: '人类简史很好看',
    createTime: '2018-11-27 13:43:32'
  }, {
    key: '2',
    id: 2,
    userId: 1,
    title: '未来简史说明',
    content: '未来简史很好看',
    createTime: '2018-10-17 13:43:32'
  }]
});

export default (state = defaultState, action) => {
  switch(action.type) {
    default:
      return state;
  }
}